//
//  Fraction.h
//  OC02_HomeWork
//
//  Created by dllo on 16/7/5.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Fraction : NSObject
/** 分子 */
@property (nonatomic, assign) NSInteger numerator;
/** 分母 */
@property (nonatomic, assign) NSInteger denominator;

- (instancetype)initWithNumerator:(NSInteger)numerator
                      denominator:(NSInteger)denominator;

+ (instancetype)fractionWithNumerator:(NSInteger)numerator
                          denominator:(NSInteger)denominator;

- (Fraction *)addAnotherFraction:(Fraction *)fraction;

- (Fraction *)subAnotherFraction:(Fraction *)fraction;

- (Fraction *)mulAnotherFraction:(Fraction *)fraction;

- (Fraction *)divAnotherFraction:(Fraction *)fraction;

- (NSString *)description;

@end
